package adv2;

public class ClsTest {
	public static void main(String[] args) throws Exception {
		// Class
		// Class c4=int.class;

		Class c = Object.class;
		Class c2 = WrapTest.class;
		Class c3 = Class.forName("adv2.WrapTest");
		System.out.println(c2 == c3);
		System.out.println("父类：" + c3.getSuperclass().getName());
		System.out.println("所有接口：");
		Class[] cr = c2.getInterfaces();
		for (Class c1 : cr)
			System.out.println(cr);
	}
}
